package com.xian.yoga.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * coach
 * @author 
 */
public class Coach implements Serializable {
    private Integer coachId;

    private Integer studioId;

    private Integer contractId;

    private Integer usersId;

    private String coachName;

    private String coachSex;

    private Date coachBirthday;

    private String coachMajor;

    private BigDecimal coachHourwage;

    private String coachImg;

    private String coachLongitude;

    private String coachLatitude;

    private String coachVice;

    private String coachCity;

    private String coachArea;

    private String coachCard;

    private Date coachRegdate;

    private Integer coachPositive;

    private String coachIsopen;

    private String coachStatus;

    private String coachShowflag;

    private static final long serialVersionUID = 1L;

    public Integer getCoachId() {
        return coachId;
    }

    public void setCoachId(Integer coachId) {
        this.coachId = coachId;
    }

    public Integer getStudioId() {
        return studioId;
    }

    public void setStudioId(Integer studioId) {
        this.studioId = studioId;
    }

    public Integer getContractId() {
        return contractId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public Integer getUsersId() {
        return usersId;
    }

    public void setUsersId(Integer usersId) {
        this.usersId = usersId;
    }

    public String getCoachName() {
        return coachName;
    }

    public void setCoachName(String coachName) {
        this.coachName = coachName;
    }

    public String getCoachSex() {
        return coachSex;
    }

    public void setCoachSex(String coachSex) {
        this.coachSex = coachSex;
    }

    public Date getCoachBirthday() {
        return coachBirthday;
    }

    public void setCoachBirthday(Date coachBirthday) {
        this.coachBirthday = coachBirthday;
    }

    public String getCoachMajor() {
        return coachMajor;
    }

    public void setCoachMajor(String coachMajor) {
        this.coachMajor = coachMajor;
    }

    public BigDecimal getCoachHourwage() {
        return coachHourwage;
    }

    public void setCoachHourwage(BigDecimal coachHourwage) {
        this.coachHourwage = coachHourwage;
    }

    public String getCoachImg() {
        return coachImg;
    }

    public void setCoachImg(String coachImg) {
        this.coachImg = coachImg;
    }

    public String getCoachLongitude() {
        return coachLongitude;
    }

    public void setCoachLongitude(String coachLongitude) {
        this.coachLongitude = coachLongitude;
    }

    public String getCoachLatitude() {
        return coachLatitude;
    }

    public void setCoachLatitude(String coachLatitude) {
        this.coachLatitude = coachLatitude;
    }

    public String getCoachVice() {
        return coachVice;
    }

    public void setCoachVice(String coachVice) {
        this.coachVice = coachVice;
    }

    public String getCoachCity() {
        return coachCity;
    }

    public void setCoachCity(String coachCity) {
        this.coachCity = coachCity;
    }

    public String getCoachArea() {
        return coachArea;
    }

    public void setCoachArea(String coachArea) {
        this.coachArea = coachArea;
    }

    public String getCoachCard() {
        return coachCard;
    }

    public void setCoachCard(String coachCard) {
        this.coachCard = coachCard;
    }

    public Date getCoachRegdate() {
        return coachRegdate;
    }

    public void setCoachRegdate(Date coachRegdate) {
        this.coachRegdate = coachRegdate;
    }

    public Integer getCoachPositive() {
        return coachPositive;
    }

    public void setCoachPositive(Integer coachPositive) {
        this.coachPositive = coachPositive;
    }

    public String getCoachIsopen() {
        return coachIsopen;
    }

    public void setCoachIsopen(String coachIsopen) {
        this.coachIsopen = coachIsopen;
    }

    public String getCoachStatus() {
        return coachStatus;
    }

    public void setCoachStatus(String coachStatus) {
        this.coachStatus = coachStatus;
    }

    public String getCoachShowflag() {
        return coachShowflag;
    }

    public void setCoachShowflag(String coachShowflag) {
        this.coachShowflag = coachShowflag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Coach other = (Coach) that;
        return (this.getCoachId() == null ? other.getCoachId() == null : this.getCoachId().equals(other.getCoachId()))
            && (this.getStudioId() == null ? other.getStudioId() == null : this.getStudioId().equals(other.getStudioId()))
            && (this.getContractId() == null ? other.getContractId() == null : this.getContractId().equals(other.getContractId()))
            && (this.getUsersId() == null ? other.getUsersId() == null : this.getUsersId().equals(other.getUsersId()))
            && (this.getCoachName() == null ? other.getCoachName() == null : this.getCoachName().equals(other.getCoachName()))
            && (this.getCoachSex() == null ? other.getCoachSex() == null : this.getCoachSex().equals(other.getCoachSex()))
            && (this.getCoachBirthday() == null ? other.getCoachBirthday() == null : this.getCoachBirthday().equals(other.getCoachBirthday()))
            && (this.getCoachMajor() == null ? other.getCoachMajor() == null : this.getCoachMajor().equals(other.getCoachMajor()))
            && (this.getCoachHourwage() == null ? other.getCoachHourwage() == null : this.getCoachHourwage().equals(other.getCoachHourwage()))
            && (this.getCoachImg() == null ? other.getCoachImg() == null : this.getCoachImg().equals(other.getCoachImg()))
            && (this.getCoachLongitude() == null ? other.getCoachLongitude() == null : this.getCoachLongitude().equals(other.getCoachLongitude()))
            && (this.getCoachLatitude() == null ? other.getCoachLatitude() == null : this.getCoachLatitude().equals(other.getCoachLatitude()))
            && (this.getCoachVice() == null ? other.getCoachVice() == null : this.getCoachVice().equals(other.getCoachVice()))
            && (this.getCoachCity() == null ? other.getCoachCity() == null : this.getCoachCity().equals(other.getCoachCity()))
            && (this.getCoachArea() == null ? other.getCoachArea() == null : this.getCoachArea().equals(other.getCoachArea()))
            && (this.getCoachCard() == null ? other.getCoachCard() == null : this.getCoachCard().equals(other.getCoachCard()))
            && (this.getCoachRegdate() == null ? other.getCoachRegdate() == null : this.getCoachRegdate().equals(other.getCoachRegdate()))
            && (this.getCoachPositive() == null ? other.getCoachPositive() == null : this.getCoachPositive().equals(other.getCoachPositive()))
            && (this.getCoachIsopen() == null ? other.getCoachIsopen() == null : this.getCoachIsopen().equals(other.getCoachIsopen()))
            && (this.getCoachStatus() == null ? other.getCoachStatus() == null : this.getCoachStatus().equals(other.getCoachStatus()))
            && (this.getCoachShowflag() == null ? other.getCoachShowflag() == null : this.getCoachShowflag().equals(other.getCoachShowflag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCoachId() == null) ? 0 : getCoachId().hashCode());
        result = prime * result + ((getStudioId() == null) ? 0 : getStudioId().hashCode());
        result = prime * result + ((getContractId() == null) ? 0 : getContractId().hashCode());
        result = prime * result + ((getUsersId() == null) ? 0 : getUsersId().hashCode());
        result = prime * result + ((getCoachName() == null) ? 0 : getCoachName().hashCode());
        result = prime * result + ((getCoachSex() == null) ? 0 : getCoachSex().hashCode());
        result = prime * result + ((getCoachBirthday() == null) ? 0 : getCoachBirthday().hashCode());
        result = prime * result + ((getCoachMajor() == null) ? 0 : getCoachMajor().hashCode());
        result = prime * result + ((getCoachHourwage() == null) ? 0 : getCoachHourwage().hashCode());
        result = prime * result + ((getCoachImg() == null) ? 0 : getCoachImg().hashCode());
        result = prime * result + ((getCoachLongitude() == null) ? 0 : getCoachLongitude().hashCode());
        result = prime * result + ((getCoachLatitude() == null) ? 0 : getCoachLatitude().hashCode());
        result = prime * result + ((getCoachVice() == null) ? 0 : getCoachVice().hashCode());
        result = prime * result + ((getCoachCity() == null) ? 0 : getCoachCity().hashCode());
        result = prime * result + ((getCoachArea() == null) ? 0 : getCoachArea().hashCode());
        result = prime * result + ((getCoachCard() == null) ? 0 : getCoachCard().hashCode());
        result = prime * result + ((getCoachRegdate() == null) ? 0 : getCoachRegdate().hashCode());
        result = prime * result + ((getCoachPositive() == null) ? 0 : getCoachPositive().hashCode());
        result = prime * result + ((getCoachIsopen() == null) ? 0 : getCoachIsopen().hashCode());
        result = prime * result + ((getCoachStatus() == null) ? 0 : getCoachStatus().hashCode());
        result = prime * result + ((getCoachShowflag() == null) ? 0 : getCoachShowflag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", coachId=").append(coachId);
        sb.append(", studioId=").append(studioId);
        sb.append(", contractId=").append(contractId);
        sb.append(", usersId=").append(usersId);
        sb.append(", coachName=").append(coachName);
        sb.append(", coachSex=").append(coachSex);
        sb.append(", coachBirthday=").append(coachBirthday);
        sb.append(", coachMajor=").append(coachMajor);
        sb.append(", coachHourwage=").append(coachHourwage);
        sb.append(", coachImg=").append(coachImg);
        sb.append(", coachLongitude=").append(coachLongitude);
        sb.append(", coachLatitude=").append(coachLatitude);
        sb.append(", coachVice=").append(coachVice);
        sb.append(", coachCity=").append(coachCity);
        sb.append(", coachArea=").append(coachArea);
        sb.append(", coachCard=").append(coachCard);
        sb.append(", coachRegdate=").append(coachRegdate);
        sb.append(", coachPositive=").append(coachPositive);
        sb.append(", coachIsopen=").append(coachIsopen);
        sb.append(", coachStatus=").append(coachStatus);
        sb.append(", coachShowflag=").append(coachShowflag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}